package com.twu;

/**
 * Created by vivekpatil on 7/3/14.
 */
public abstract class Duck {
    Flyable flyable;

    public Duck(Flyable flyable) {
        this.flyable=flyable;
    }

    public String quack() {
        return "Quacking";
    }

    public String swim() {
        return "Swimming";
    }

    public abstract String display();

    public String fly() {
        return this.flyable.fly();
    }
}
